package main
import "fmt"
func main() {
	// 1. 值传递
	a := 10
	b := 20
	fmt.Println("交换之前，a:", a, "，b:", b)
	swap(a, b)
	fmt.Println("交换之后，a:", a, "，b:", b)
}

func swap(a int, b int) {
	a, b = b, a
}